from fastapi import APIRouter, Depends, status

from app.api.deps import (
    CurrentUser,
    SessionDep,
    get_current_active_superuser,
)

from app.core.security import  verify_password
from app import  models
from app import services


router = APIRouter()


@router.get("/area")
async def get_areas(session: SessionDep, current_user: CurrentUser) -> models.areasPublic:
    """
    返回地区
    """
           
    return await services.AreaService(current_user=current_user,db=session).get_areas()

